import { request } from "@/utils/request.js"

// 售后列表
export function refundPage(data = {}) {
	return request({
		url: '/user/refund/page',
		data
	})
}

// 售后详情
export function refundInfo(data = {}) {
	return request({
		url: '/user/refund/info',
		data
	})
}

// 售后申请
export function refundApply(data = {}) {
	return request({
		url: '/user/refund/apply',
		data,
		showMsg: true
	})
}

// 取消售后
export function refundCancel(data = {}) {
	return request({
		url: '/user/refund/cancel',
		data,
		showMsg: true
	})
}

// 填写物流信息
export function refundSetRefundLogistics(data = {}) {
	return request({
		url: '/user/refund/setRefundLogistics',
		data,
		showMsg: true
	})
}

// 物流公司列表
export function refundLogCompanyList(data = {}) {
	return request({
		url: '/user/refund/logCompanyList',
		data
	})
}